package com.prp.gwt.client.user.php;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.prp.gwt.client.vo.MessageList;
import com.prp.gwt.client.vo.SubjectRecommendList;
import com.prp.gwt.client.vo.UserList;
import com.prp.gwt.client.vo.UserStateList;

public interface PHPServiceAsync {

	public void getLatestState(int id, AsyncCallback<UserStateList> callback);
	public void addState(String content, AsyncCallback<Void> callback);
	public void getStateList(int id, AsyncCallback<UserStateList> callback);
	public void getUserRecommendation(AsyncCallback<UserList> callback);
	public void addMessage(String content, int toUserId, int inUserId, AsyncCallback<Void> callback);
	public void getMessageList(int userId, AsyncCallback<MessageList> callback);
	public void deleteMessage(int id, AsyncCallback<Void> callback);
	public void getUncheckedMessageList(AsyncCallback<MessageList> callback);
	public void setMessageChecked(int id, AsyncCallback<Void> callback);
	public void getArticalRecommendation(AsyncCallback<SubjectRecommendList> callback);
	public void getRecentRecommendation(int userId, AsyncCallback<SubjectRecommendList> callback);
	
}
